/* author: Mariana Horita
   mariana.horita@gmail.com
   file: A5E4-p2.aspx.cs*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Exercicios
{
    public partial class A5E4_p2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Cadastro"] != null)
            {
                Cadastro c = (Cadastro)Session["Cadastro"];

                lblNome.Text = c.Nome;
                lblTelefone.Text = c.Telefone;
                lblEndereco.Text = c.Endereco;
            }
        }

        protected void btConfirmar_Click(object sender, EventArgs e)
        {
            if (ckbEndereco.Checked && ckbNome.Checked && ckbTelefone.Checked)
            {
                Response.Redirect("A5E4-p3.aspx");
            }
            else
            {
                Response.Redirect("A5E4-p1.aspx");
            }
        }
    }
}